<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Coupon extends Model
{

    protected $guarded = ['date'];
    protected $table = 'coupons';
    public $timestamps = false;

    public function oncustomers(){
        return $this->belongsToMany('App\Models\Oncustomer','coupon_oncustomers');
    }
    public function store(){
        return $this->belongsTo('App\Models\Store');
    }

    public function types(){
        return $this->belongsToMany('App\Models\Type','coupon_types');
    }

}
